package com.edevp.common.security.exception;


/**
 * 权限异常码
 * @author Lean
 * @create 2021-02-18 5:09 PM
 **/
public class AuthExceptionCode {
	/**
	 * client_id or client_secret is required
	 **/
	public static int CLIENT_ID_REQUIRED = 1000005;
	/**
	 * generate jwt error
	 **/
	public static int GENERATE_JWT_ERROR = 1000006;
	/**
	 * client not find
	 **/
	public static int CLIENT_NOT_FIND = 1000007;
	/**
	 * client_secret incorrect
	 **/
	public static int CLIENT_SECRET_ILLEGAL = 1000008;
	/**
	 * grant_type or scope is required
	 **/
	public static int CLIENT_GRANT_TYPE_REQUIRED = 1000009;
	/**
	 * username or password is required
	 **/
	public static int GET_TOKEN_USERNAME_REQUIRED = 1000010;
	/**
	 * grant_type incorrect
	 **/
	public static int CLIENT_GRANT_TYPE_ILLEGAL = 1000011;
	/**
	 * scope incorrect
	 **/
	public static int CLIENT_SCOPE_ILLEGAL = 1000012;
	/**
	 * username or password incorrect
	 **/
	public static int ERROR_USERNAME_PASSWORD = 1000013;

	/**
	 * token is required
	 **/
	public static int AUTH_TOKEN_REQUIRED = 1000014;
	/**
	 * token not find
	 **/
	public static int AUTH_TOKEN_NOT_FIND = 1000015;
	/**
	 * token incorrect
	 **/
	public static int AUTH_TOKEN_INCORRECT = 1000016;
	/**
	 * expired token
	 **/
	public static int AUTH_TOKEN_EXPIRED = 1000017;

	/**
	 * Gateway access only
	 **/
	public static int AUTH_GATEWAY_ACCESS_ONLY = 1000018;

	/**
	 * token can not parse
	 **/
	public static int AUTH_TOKEN_PARSE = 1000019;
	/**
	 * user not find
	 **/
	public static int USER_NOT_FIND = 1000021;

}